package common

import "encoding/json"

func ToJson(obj any) string {
	if data, err := json.Marshal(obj); err == nil {
		return string(data)
	}
	return "格式失败"
}
